package com.lianjia.sh.tools.msg.v2.sender.impl;

import com.lianjia.sh.tools.msg.v2.sender.PnsSender;
import com.lianjia.sh.tools.msg.v2.message.*;

/**
 * Created by yangsp1 on 16/6/24.
 */
public class PnsSenderImpl implements PnsSender {
    //必填：APP类型
    Integer appId = 1000;

    //必填：业务类型
    Integer businessId;

    public boolean send(PnsTextMsg pnsTextMsg){
        System.out.println("发送PNS普通文本：" + pnsTextMsg.getRemark());
        return true;
    }

    public boolean send(PnsRichTextMsg pnsRichTextMsg){
        System.out.println("发送PNS富文本：" + pnsRichTextMsg.getRemark());

        return false;
    }
    public boolean send(PnsPicMsg pnsPicMsg){
        System.out.println("发送PNS图片：" + pnsPicMsg.getPicUrl());
        return false;
    }

    public Integer getAppId() {
        return appId;
    }

    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }
}
